package mine.aop;

import org.springframework.stereotype.Component;

/**
 * Created by james on 16/2/3.
 */
@Component
public class GreetingImpl implements Greeting {
    public void sayHello(String name) {
        System.out.println("Hello! "+name);
    }

    private void before(){
        System.out.println("before");
    }
    private void after(){
        System.out.println("after");
    }
    public void goodMorning(String name){
        System.out.println("Good Morning "+ name);
    }
    public void goodNight(String name){
        System.out.println("Good Night "+ name);
    }

}
